package com.juyu.miliao.api.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.juyu.miliao.api.dao.mysql.OrderDao;
import com.juyu.miliao.api.domain.Order;
import org.springframework.transaction.annotation.Transactional;

@Service
public class OrderService {
	@Resource
	private OrderDao orderDao;

	public void insertOrder(Order order) {
		orderDao.insertOrder(order);
	}

	public int updateOrderById(String orderId, String outId) {
		return orderDao.updateOrderById(orderId,outId);
	}


	public Order findOrderById(String orderId) {
		return orderDao.findOrderByOrderId(orderId);
	}

	public int findOrderByOutId(String outId) {
		return orderDao.findOrderByOutId(outId);
	}
}
